package org.example.test2;

class t2 {

    public static void main(String[] args) {
        Bucket bucket=new Bucket(); //构造篮子
        new Thread(new Producer(bucket)).start();
        new Thread(new Consumer(bucket)).start();
    }
}
